package jp.co.itfrontier.mashup.core
{
	import flash.events.EventDispatcher;
	import jp.co.itfrontier.mashup.vo.BookVO;
	import com.adobe.xml.syndication.rss.RSS20;

	[Bindable]
	public class ModelLocater {
		
		[ArrayElementType(type="jp.co.itfrontier.mashup.vo.BookVO")]
		// 本の配列
		public var books:Array;
		
		// 初期検索キーワード
		public var words:Array;
				
		// kizasi関連語
		public var kizasiWords:Array;
		
		// Yahoo文脈解析
		public var yahooWords:Array;
				
		[ArrayElementType(type="com.adobe.xml.syndication.rss.Item20")]
		public var kizasiRSS:Array;

		private static var instance:ModelLocater;

		public function ModelLocater() {
			if (instance != null) {
				throw new Error("既にModelLocatorはインスタンス済みです");
			}
		}

		public static function getInstance():ModelLocater {
			if (instance == null) {
				instance = new ModelLocater();
			}
			return instance;
		}		
		
	}
}